package org.bwf.study.controller;

import org.bwf.obj.bo.OrderCreateBO;
import org.bwf.obj.bo.SelectQuerySiteBO;
import org.bwf.study.aop.ReturnInfo;
import org.bwf.study.servcie.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("val/orders/")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @PutMapping
    public Object OrderCreate(OrderCreateBO bo){
        return new ReturnInfo(orderService.OrderCreate(bo));
    }

    @PostMapping
    public Object SelectSite(SelectQuerySiteBO selectQuerySiteBO){
        return new ReturnInfo(orderService.SelectSite(selectQuerySiteBO));
    }
}
